<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0
        }

        .dv_container {
            width: 300px;
            height: 300px;
            /* background-color: rebeccapurple; */
            margin: 0 auto;
            text-align: center;
        }
    </style>
</head>

<body>
    <div class="dv_container">
        <p>
            <input type="text" value="北京市" name="minss">
        </p>
        <p>
            <input type="text" value="朝阳区" name="minss">
        </p>
        <button onclick="onClickParameter()">传参</button>
    </div>
</body>
<script>
    var ominss = document.getElementsByName("minss")
    function onClickParameter() {
        console.log(ominss);
        for (var i = 0; i < ominss.length; i++) {
            alert(ominss[i].value)
        }
    }
</script>

</html>